//
//  NSDictionary+Extension.h
//  SYRJ
//
//  Created by cooptec on 2018/5/2.
//  Copyright © 2018年 Law. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDictionary (Extension)
//字典转json
+ (NSString *)returnToJsonData:(id)dict;

+ (NSDictionary *)returnToDictionaryWithStr:(NSString *)jsonStr;

- (NSString *)safeStringForKey:(NSString *)key;

- (NSInteger)safeIntegerForKey:(NSString *)key;

- (CGFloat)safeFloatForKey:(NSString *)key;

- (int)safeIntForKey:(NSString *)key;

- (BOOL)safeBoolForKey:(NSString *)key;

- (NSDate *)safeDateForKey:(NSString *)key;

- (NSArray *)safeArrayForKey:(NSString *)key;

@end
